*Use .dta file: "Heurlin - Authoritarian Aid and Regime Durability.dta
*Table 2 
*Model 1 


stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1GDPLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag, cluster(RegimeID) nohr

*Model 2
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1pcLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag, cluster(RegimeID) nohr

*Model 3
stset Duration, id(CaseName) failure(Fail==1) scale(1)

stcox c.SovietAid1lag1GDPLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 4 
stset Duration, id(CaseName) failure(Fail==1) scale(1)

stcox c.SovietAid1lag1pcLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 5 
stset Duration, id(CaseName) failure(Fail==1) scale(1)

streg PopLn c.SovietAid1lag1GDPLn2##i.Communist PartyNoCommunist Military Monarchy GDPpcLn OilGasPop1Ln SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, dist(weibull) vce(robust) 


*Model 6
stset Duration, id(CaseName) failure(Fail==1) scale(1)

streg PopLn c.SovietAid1lag1pcLn2##i.Communist PartyNoCommunist Military Monarchy GDPpcLn OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, dist(weibull) vce(robust)



*Figure 1: 
stset Duration, id(CaseName) failure(Fail==1) scale(1)
sts graph if Communist==0, by(SovietAidGDPLowHigh)

*Table 3 
*Model 1 
stset Duration, id(CaseName) failure(MilCoup==1) scale(1)
stcox c. SovietAid1lag1GDPLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Communist==0, cluster(RegimeID) nohr


*model 2 
stcox c.SovietAid1lag1pcLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Communist==0, cluster(RegimeID) nohr

*Appendix 
*Table 1.1.1
summarize Duration Fail SovietAid1lag1pcLn2 SovietAid1lag1GDPLn2 SovMilPCLn1lag SovMilGDPLn1lag Military Monarchy Party Communist PartyNoCommunist GDPpcLn OilGasPop1Ln PopLn PartyCommissar CivilWar InterventionSoviet

*Table 1.1.2
correlate Duration Fail SovietAid1lag1pcLn2 SovietAid1lag1GDPLn2 SovMilPCLn1lag SovMilGDPLn1lag Military Monarchy Party Communist PartyNoCommunist GDPpcLn OilGasPop1Ln PopLn PartyCommissar CivilWar InterventionSoviet

*Table 1.3.1
*Model 1 
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1GDPLn2, cluster(RegimeID) nohr strata(CowCode)


*Model 2 
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1pcLn2, cluster(RegimeID) nohr strata(CowCode)

*Model 3 
stcox c.SovietAid1lag1GDPLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr strata(CowCode)

*Model 4 
stcox c.SovietAid1lag1pcLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr strata(CowCode)

*Model 5 
stcox c.SovietAid1lag1GDPLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(CowCode) nohr 

*Model 6
 stcox c.SovietAid1lag1pcLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(CowCode) nohr 

*Table 1.3.2

*Model 7
stcox c.SovietAid1lag1GDPLn2#i.Communist c.SovietAid1lag1GDPLn2 i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr strata(CowCode)


*Model 8
stcox c.SovietAid1lag1pcLn2#i.Communist c.SovietAid1lag1pcLn2 i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr strata(CowCode)

*Model 9
stcox c.SovietAid1lag1GDPLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(CowCode) nohr 

*Model 10
stcox c.SovietAid1lag1pcLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(CowCode) nohr

*Table 1.4.1
*Model 1
stset Duration, id(CaseName) failure(MilCoup==1) scale(1)
stcox c. SovietAid1lag1GDPLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Communist==0, cluster(RegimeID) nohr strata(CowCode)

*Model2
stset Duration, id(CaseName) failure(MilCoup==1) scale(1)
stcox c.SovietAid1lag1pcLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Communist==0, cluster(RegimeID) nohr strata(CowCode)

*Model 3
stset Duration, id(CaseName) failure(MilCoup==1) scale(1)
stcox c. SovietAid1lag1GDPLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Communist==0, cluster(CowCode) nohr 

*Model 4
stset Duration, id(CaseName) failure(MilCoup==1) scale(1)
stcox c.SovietAid1lag1pcLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Communist==0, cluster(CowCode) nohr 


*Table 1.5.1

*Model 1
stset Duration, id(CaseName) failure(Fail==1) scale(1)

stcox c.SovietAid1lag1GDPLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 2
stset Duration, id(CaseName) failure(Fail==1) scale(1)

stcox c.SovietAid1lag1pcLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 3
stset Duration, id(CaseName) failure(Fail==1) scale(1)

stcox c.SovietAid1lag1GDPLn2#i.Communist c.SovietAid1lag1GDPLn2 i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr strata(CowCode)

*Model 4 
stset Duration, id(CaseName) failure(Fail==1) scale(1)

stcox c.SovietAid1lag1pcLn2#i.Communist c.SovietAid1lag1pcLn2 i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr strata(CowCode)

*Table 1.6.1
*Model 1 
stset Duration, id(CaseName) failure(Fail==1) scale(1)

stcox c.SovietAid1lag1GDPLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag c.SovietAid1lag1GDPLn2##i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 2 
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1pcLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag c.SovietAid1lag1pcLn2##i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 3
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag c.SovietAid1lag1GDPLn2##i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 4
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag c.SovietAid1lag1pcLn2##i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 5
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag c.SovietAid1lag1GDPLn2##i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr

*Model 6
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag c.SovietAid1lag1pcLn2##i.PartyCommissar i.InterventionSoviet i.CivilWar, cluster(RegimeID) nohr


*Table 1.7.1
*Model 1
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1GDPLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag if Year<1989, cluster(RegimeID) nohr 

*Model 2
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1pcLn2 i.Party i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag if Year<1989, cluster(RegimeID) nohr 

*Model 3
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1GDPLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Year<1989, cluster(RegimeID) nohr 

*Model 4
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1pcLn2##i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Year<1989, cluster(RegimeID) nohr 

*Model 5
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1GDPLn2 c.SovietAid1lag1GDPLn2#i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilGDPLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Year<1989, cluster(RegimeID) nohr strata(CowCode)

*Model 6
stset Duration, id(CaseName) failure(Fail==1) scale(1)
stcox c.SovietAid1lag1pcLn2 c.SovietAid1lag1pcLn2#i.Communist i.PartyNoCommunist i.Military i.Monarchy c.GDPpcLn c.PopLn c.OilGasPop1Ln c.SovMilPCLn1lag i.PartyCommissar i.InterventionSoviet i.CivilWar if Year<1989, cluster(RegimeID) nohr strata(CowCode)


